Skip to content

Refactor Messages System: Categorization, Editing, and Metadata#148

Closed
presstab wants to merge 1 commit intomasterfrom
refactor-messages-system-11310598638947422639
Closed

Refactor Messages System: Categorization, Editing, and Metadata#148
presstab wants to merge 1 commit intomasterfrom
refactor-messages-system-11310598638947422639

Conversation

@presstab
Copy link
Owner

This PR refactors the message system to introduce thread categorization, message editing/deletion capabilities, and metadata tracking. Threads are now stored in category-based subdirectories within .jrdev/threads/. The UI has been updated to display threads in a tree view and allows inline editing of user messages. The backend now supports appending messages to the thread history without overwriting, enabling persistent edits and metadata storage.


PR created automatically by Jules for task 11310598638947422639 started by @presstab

…data

- Added `category` attribute to `MessageThread` and updated storage to use subdirectories.
- Updated `Application._load_persisted_threads` to recursively load threads.
- Refactored `ChatList` to use a `Tree` widget for categorized thread display.
- Added `/thread move` and `/category create` commands.
- Added `edit_message` and `delete_message` methods to `MessageThread`.
- Added `/message edit` and `/message delete` commands.
- Updated `MessageBubble` UI with Edit/Delete buttons and inline editing.
- Updated `ChatViewWidget` to handle message updates and display thread mode.
- Refactored `MessageService.stream_message` to append user messages instead of overwriting history, preserving metadata and edits.
- Added metadata support (e.g., model name) to messages.

Co-authored-by: presstab <6628210+presstab@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@presstab presstab closed this Feb 20, 2026
@presstab presstab deleted the refactor-messages-system-11310598638947422639 branch February 20, 2026 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant